package com.tri.framework;

import android.content.res.Resources;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;

public class AppManager 
{
	private GameView m_gameview;
	private Resources m_resources;

	private static AppManager s_instance;

	public static AppManager getInstance()
	{
		if(s_instance == null)
		{
			s_instance = new AppManager();
		}
		return s_instance;
	}

	void setGameView(GameView gameview)
	{
		m_gameview = gameview;
	}

	void setReSources(Resources resources)
	{
		m_resources = resources;
	}

	public GameView getGameView()
	{
		return m_gameview;
	}
	public Resources getResources()
	{
		return m_resources;
	}
	public Bitmap getBitmap(int r)
	{
		return BitmapFactory.decodeResource(m_resources, r);
	}



}
